home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 14 / lotusfmt.zip / WSFF3.TXT < prev    next >
Text File  |  1986-08-31  |  4KB  |  147 lines

  1.                             WORKSHEET FILE FORMAT 
  2.                                   FROM LOTUS 
  3.  
  4.                       APPENDIX A - CELL FORMAT ENCODING
  5.  
  6.                Copyright(c) 1984, Lotus Development Corporation 
  7.                                161 First Street 
  8.                         Cambridge, Massachusetts 02142 
  9.                                 (617) 492-7171 
  10.                       Electronic Edition, December, 1984 
  11.                              All Rights Reserved 
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.                       APPENDIX A:  Cell Format Encoding 
  68.  
  69.  
  70.  The first byte of a content-related record contains a cell format code. 
  71.  
  72.  Format is determined at the bit level. 
  73.  
  74.  
  75.  Table 8   Cell Format Encoding 
  76.  
  77.  Bit number     Description               Code             Meaning 
  78.  7              protection                1                protected 
  79.                                           0                unprotected 
  80.  
  81.  4,5,6          format type               0                fixed 
  82.                                           1                scientific 
  83.                                                              notation 
  84.                                           2                currency 
  85.                                           3                percent 
  86.                                           4                comma 
  87.                                           5                unused 
  88.                                           6                unused 
  89.                                           7                special 
  90.  0,1,2,3        number of decimal         0-15 
  91.                  places decoded  
  92.                  (if format type = 0-6) 
  93.  
  94.                 special format type       0                +/- 
  95.                 (if format type = 7)      1                general 
  96.                                           2                day-month-year 
  97.                                           3                day-month 
  98.                                           4                month-year 
  99.                                           5                text 
  100.                 (Symphony only)           6                hidden 
  101.                 (Symphony only)           7                date;hour-min-sec 
  102.                 (Symphony only)           8                date;hour-min 
  103.                 (Symphony only)           9                date;intnt'l1 
  104.                 (Symphony only)           10               date;intnt'l1 
  105.                 (Symphony only)           11               time;intnt'l1 
  106.                 (Symphony only)           12               time;intnt'l2 
  107.                                           13-14            unused 
  108.                                           15               default 
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  EXAMPLE 
  117.  
  118.  Currency format, two decimal places, unprotected cell 
  119.  
  120.  
  121.  Bit Number    7   6   5   4   3   2   1   0 
  122.  Binary Code   0   0   1   0   0   0   1   0 
  123.                    --------- 
  124.                   Format Type ---------------  
  125.                Protection     Number of Decimal Places 
  126.                                   or Special Format 
  127.  
  128.  The byte number is 0. 
  129.  The hex code is 22. 
  130.  
  131.  
  132.  Example 
  133.  
  134.  Special format, month-year, protected cell 
  135.  
  136.  
  137.  Bit Number     7   6   5   4   3   2   1   0 
  138.  Binary Code    1   1   1   1   0   1   0   0 
  139.                     --------- 
  140.                    Format Type  ------------- 
  141.                  Protection    Number of Decimal Places 
  142.                                   or Special Format 
  143.  
  144.  
  145.  The byte number is 0. 
  146.  The hex code is F4. 
  147.